using MicroMsg.Manager;
using MicroMsg.Plugin.Shake.Scene;
using MicroMsg.Scene;
using MicroMsg.UI.Util;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.Page
{
	public class ShakeHelpPage : BasePage
	{
		public const string bNotShowLbsTipKey = "bNotShowDialogInLbs";
		private UpdateInfo m_UpdateInfo;
		internal Grid LayoutRoot;
		internal StackPanel ContentPanel;
		private bool _contentLoaded;
		public ShakeHelpPage()
		{
			this.InitializeComponent();
		}
		protected override void OnPageOut()
		{
		}
		protected override void OnPageBack()
		{
			if (!ConfigMgr.smethod_0<ShakeConfig>().bIsShowShakeHelp)
			{
				base.GoBack();
			}
		}
		private void page_Click(object sender, RoutedEventArgs e)
		{
			this.LayoutRoot.set_Visibility(1);
			int count = PageManager.getInstance().basePageList.get_Count();
			int num = 0;
			for (int i = 0; i < count; i++)
			{
				BasePage basePage = PageManager.getInstance().basePageList.get_Item(i);
				if (basePage is ShakePage)
				{
					num++;
				}
				else
				{
					if (basePage is PluginSettingPage && (basePage as PluginSettingPage).GetPluginName() == "Shake")
					{
						num++;
					}
				}
			}
			if (num == 2)
			{
				PageManager.getInstance().PopPage();
				PageManager.getInstance().PopPage();
			}
			base.GoToPage("/source/plugin/shake/ui/shakepage.xaml", null, true);
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/Plugin/Shake/UI/ShakeHelpPage.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.ContentPanel = (StackPanel)base.FindName("ContentPanel");
		}
	}
}
